php forum
php mysql forum
php mysql smarty
 
Page 1 of 2 1 2 >
Topic Options
#200414 - 06/27/03 09:06 PM [6.5 - 6.6 - 6.7] [finished] PM Notification Addon
Ian Spence Offline
Master Hacker

Registered: 01/25/03
Posts: 3765
Loc: Saint Johns, PA
Modification Name: PM Notification Addon

Author(s): Weird Al

Description: Will create a popup telling a member that he has a new PM

Demo: http://www.alforadmin.com/_personal/pmnot.gif

Requirements: Valid UBB.classic license

Download Links:
[6.5 - 6.6] here
[6.7] here

Credits: LK for a little code from the shoutbox. Charles Capps for not letting me settle for the easy way tipsy . CTM for the "pseudocode", and Allen for using thumbsup far too much wink

Notes: This will not work on 6.4 and lower, because this needs the base code from 6.5. I cannot support any ports to users using the PM Inbox hack.

Amendments: No longer uses the body code, and is used right beforethe closing html tag, so that the whole page will load before the popup.

Top
#200415 - 06/27/03 09:32 PM Re: [6.5 - 6.6 - 6.7] [finished] PM Notification Addon
AllenAyres Offline

I type Like navaho

Registered: 03/10/00
Posts: 25580
Loc: Texas
nice one Al thumbsup
_________________________
- Allen wavey
- What Drives You?

Top
#200416 - 06/27/03 10:15 PM Re: [6.5 - 6.6 - 6.7] [finished] PM Notification Addon
Ian Spence Offline
Master Hacker

Registered: 01/25/03
Posts: 3765
Loc: Saint Johns, PA
thanks, I'm looking at adding 1 more version of it. It will take you straight to check your PMs when you click ok. I just don't know how to make the OK button make you go to your profile

Top
#200417 - 06/27/03 11:20 PM Re: [6.5 - 6.6 - 6.7] [finished] PM Notification Addon
Charles Capps Offline
Admin Emeritus

Registered: 01/09/00
Posts: 5438
Loc: Lynnwood, WA
This adds a body tag to the page, which may break it.

Instead, create a new JS variable and set it to 1 when there are PMs. Add new code at the bottom of the page (in the Footer) that then checks the variable and causes the alert if it's 1. No messy tag hacks thatway.
_________________________
UBB.classic: Love it or hate it, it was mine.

Top
#200418 - 06/28/03 12:06 AM Re: [6.5 - 6.6 - 6.7] [finished] PM Notification Addon
Ian Spence Offline
Master Hacker

Registered: 01/25/03
Posts: 3765
Loc: Saint Johns, PA
ok, I'll look into that, I'm very new with javascript (if that's what JS means). Would I use the same code (the body part), but it won't mess anything up cause it's after everything else?

I'm sorry about this, I'm just learning

Top
#200419 - 06/28/03 02:28 PM Re: [6.5 - 6.6 - 6.7] [finished] PM Notification Addon
Ian Spence Offline
Master Hacker

Registered: 01/25/03
Posts: 3765
Loc: Saint Johns, PA
ok, it's official, I have no clue how to do that frown

Top
#200420 - 06/28/03 07:01 PM Re: [6.5 - 6.6 - 6.7] [finished] PM Notification Addon
Ian Spence Offline
Master Hacker

Registered: 01/25/03
Posts: 3765
Loc: Saint Johns, PA
I guess you could move this to requests, cause I'd still like to have this hack.

Top
#200421 - 06/30/03 11:53 AM Re: [6.5 - 6.6 - 6.7] [finished] PM Notification Addon
CTM Offline
Moderator / Da Masta

Registered: 11/23/01
Posts: 2567
To do what Charles said to do isn't too hard, really... JS is executed in the order it appears in the HTML, so instead of this:

Code:
[/code]Use this:

[code]
And near the end (by the closing HTML tag) add this:

[code][/code]Untested, but it should work... Alternatively you may just be able to check if the JS variable haspms exists at the bottom, it'd save on one line of code smile

But yeah, good job and a great idea, which could possibly even be included in the stock code and turned on/off from the CP... smile

Top
#200422 - 06/30/03 02:14 PM Re: [6.5 - 6.6 - 6.7] [finished] PM Notification Addon
Ian Spence Offline
Master Hacker

Registered: 01/25/03
Posts: 3765
Loc: Saint Johns, PA
it wouldn't work for me, does it work for anyone else?

Top
#200423 - 07/01/03 12:23 PM Re: [6.5 - 6.6 - 6.7] [finished] PM Notification Addon
CTM Offline
Moderator / Da Masta

Registered: 11/23/01
Posts: 2567
That's really just pseudocode, I'm not great when it comes to JS so there might be something wrong in there... I think I should leave it for someone else to "proof-read" wink

Top
#200424 - 07/02/03 05:12 PM Re: [6.5 - 6.6 - 6.7] [finished] PM Notification Addon
Ian Spence Offline
Master Hacker

Registered: 01/25/03
Posts: 3765
Loc: Saint Johns, PA
can anyone help with this?

Top
#200425 - 07/04/03 07:16 PM Re: [6.5 - 6.6 - 6.7] [finished] PM Notification Addon
Ian Spence Offline
Master Hacker

Registered: 01/25/03
Posts: 3765
Loc: Saint Johns, PA
updated txt, now final. post any problems you have with it smile

Top
#200426 - 07/05/03 02:33 PM Re: [6.5 - 6.6 - 6.7] [finished] PM Notification Addon
Poopy Pants Offline
Member

Registered: 08/22/01
Posts: 100
yeah, i used the beta code when you first posted this.
do you have the instructions on what to cut and paste over from the beta version since i do not have the original file anymore?

Top
#200427 - 07/05/03 02:52 PM Re: [6.5 - 6.6 - 6.7] [finished] PM Notification Addon
Ian Spence Offline
Master Hacker

Registered: 01/25/03
Posts: 3765
Loc: Saint Johns, PA
updated txt to include both upgrade and fresh install instructions. if there is any confusion, just reply here, and I'll help

Top
#200428 - 01/01/04 11:17 AM Re: [6.5 - 6.6 - 6.7] [finished] PM Notification Addon
Mike L Offline
Junior Member

Registered: 11/09/03
Posts: 13
Any chance of this hack being upgraded to 6.7?

In Step 2. you are to find:

Quote:
quote:</font><hr />
~ unless ($vars_registration{DisplayRegistration} ne "YES");
<hr /></blockquote>The closest I can find to this is on line 317.
<blockquote><font class="small">quote:
[qb]if($vars_registration{DisplayRegistration} eq "NO") {[/qb]
I have tried messing with this on a test install of 6.7 Beta release 1 with some unpredicable results.

I am a complete newbe with Perl and am working through the Llama book right now. Next will be the Camel. thumbsup

This looks like it should not be a major problem for one of you expert "Haxxors". If you happen find the time to look into this, I'd be ever so grateful. laugh

thanks

Top
#200429 - 01/01/04 12:44 PM Re: [6.5 - 6.6 - 6.7] [finished] PM Notification Addon
Ian Spence Offline
Master Hacker

Registered: 01/25/03
Posts: 3765
Loc: Saint Johns, PA
updated smile download the one marked 6.7

Top
#200430 - 01/01/04 12:55 PM Re: [6.5 - 6.6 - 6.7] [finished] PM Notification Addon
Mike L Offline
Junior Member

Registered: 11/09/03
Posts: 13
Thank-you ever so much. thumbsup

Not only will this help me get the hack installed, it will serve as a lesson in Perl. wink

The code is ugly as hell, but I do like its power and flexability. (Perl that is... Not your hack. laugh )

Top
#200431 - 02/09/04 06:49 AM Re: [6.5 - 6.6 - 6.7] [finished] PM Notification Addon
d-talk Offline
Code Monkey

Registered: 05/01/01
Posts: 686
Hi is it possible that users can chosse at their profile if users whant the pop-up or not?
_________________________
Webmaster of d-talk & Kabel-Forum.com

Top
#200432 - 02/09/04 08:40 AM Re: [6.5 - 6.6 - 6.7] [finished] PM Notification Addon
Ian Spence Offline
Master Hacker

Registered: 01/25/03
Posts: 3765
Loc: Saint Johns, PA
not as of now, it would require a rewrite that I don't have time for right now

Top
#200433 - 02/19/04 05:35 PM Re: [6.5 - 6.6 - 6.7] [finished] PM Notification Addon
PhillipBurum Offline
Member

Registered: 11/02/03
Posts: 155
School isn't important ;-)

What's important is to change a pop-up to "Open PM in new Window" tipsy
_________________________
United Devices Points: [img]http://www.ubbdev.com/ud/?u=phillip.burum&s=1[/img]

Top
#200434 - 02/19/04 05:38 PM Re: [6.5 - 6.6 - 6.7] [finished] PM Notification Addon
Ian Spence Offline
Master Hacker

Registered: 01/25/03
Posts: 3765
Loc: Saint Johns, PA
Can't do that for many reasons.

1. I don't get that kind of information with PM Notification, only the number of PMs.

2. If 9 PMs... a lot of windows.

3. I've actually had it requested that it never do that, cause many find it frustrating being forced to view the PM

Top
#200435 - 02/26/04 11:03 AM Re: [6.5 - 6.6 - 6.7] [finished] PM Notification Addon
PhillipBurum Offline
Member

Registered: 11/02/03
Posts: 155
I surf pirate4x4.com a lot. Their PM notification pops up with "You have new Private Massages. Open in new window?" and buttons for OK and Cancel. If you hit OK, it just takes you to your PM page to list all of them. ;-)
_________________________
United Devices Points: [img]http://www.ubbdev.com/ud/?u=phillip.burum&s=1[/img]

Top
#200436 - 03/12/04 01:24 PM Re: [6.5 - 6.6 - 6.7] [finished] PM Notification Addon
Ian Spence Offline
Master Hacker

Registered: 01/25/03
Posts: 3765
Loc: Saint Johns, PA
Quote:
Originally posted by PhillipBurum:

I surf pirate4x4.com a lot. Their PM notification pops up with "You have new Private Massages. Open in new window?" and buttons for OK and Cancel. If you hit OK, it just takes you to your PM page to list all of them. ;-)


Added for 6.7 version. smile

Top
#200437 - 04/27/04 05:58 PM Re: [6.5 - 6.6 - 6.7] [finished] PM Notification Addon
The Finman Offline
Member

Registered: 07/26/02
Posts: 42
Hmmmmm...my old PM folders worked fine on 6.5, but for some reason something doesn't look right on 6.7.1.

Certain areas, the colors are off.

There is no outline trim around the folders and in the inbox the words "Subject", "From:", "Date:" are the same color as the header strip.

I've tried to change them in the "Style" section but that doesn't work either.

If anyone has the time, would you please take a look and offer any suggestions.

http://www.ronaldreagan.com/ubb/ultimatebb.php

Login = Tester3
Password = testing

I've tried reinstalling it 3 times and I keep getting the same results.

Thanks in advance for any help anyone can offer.
_________________________

Top
#200438 - 04/27/04 08:13 PM Re: [6.5 - 6.6 - 6.7] [finished] PM Notification Addon
Ian Spence Offline
Master Hacker

Registered: 01/25/03
Posts: 3765
Loc: Saint Johns, PA
This isn't the right topic for that. PM Folders is a different mod altogether.

Top
#200439 - 04/27/04 09:01 PM Re: [6.5 - 6.6 - 6.7] [finished] PM Notification Addon
The Finman Offline
Member

Registered: 07/26/02
Posts: 42
Quote:
Originally posted by Ian Spence:

This isn't the right topic for that. PM Folders is a different mod altogether.


Eek, my apologies...I clicked on the wrong thread. shocked
_________________________

Top
Page 1 of 2 1 2 >



Moderator:  Charles, Gizmo 
Latest Posts
[7.2.1] - Naked shoutbox
by bellaonline
05/05/12 05:00 PM
[7.x] Stop Forum Spam Integration v0.4
by bellaonline
05/05/12 03:53 PM
Shout Box

(Views)Popular Topics
Known public proxy servers 1689885
Integrated Index Page (IIP) 5.3.1 555705
Finished-[6.5.2] Games Arcade Deluxe v1.9 501236
Integrated Index Page (IIP) 5.1.1 415112
TLD Bv2.1 Released - Threads Links Directory 396822
[6.0x] Who's Online 4.0.0 [Finished] 389412
Finished-[6.5.1] Integrated Index Page (IIP) 6.5 330423
Q & A 298663
Slash UBB 266936
[6.3.x] [beta] Hit Hack 2.0 227970
Forum Stats
13621 Members
59 Forums
37191 Topics
295716 Posts

Max Online: 686 @ 06/28/07 07:04 AM

 

 

 
fusionbb message board php hacks